/**
 * @author Mike
 * @date 2017/06/02
 * @desc 首页Action
 */

import fetch from 'isomorphic-fetch';

const data = [{
  key: '1',
  name: 'John Brown',
  age: 32,
  address: 'New York No. 1 Lake Park'
}, {
  key: '2',
  name: 'Jim Green',
  age: 42,
  address: 'London No. 1 Lake Park'
}, {
  key: '3',
  name: 'Joe Black',
  age: 32,
  address: 'Sidney No. 1 Lake Park'
}];

export const fetchPost = () => {
  return {
            type: 'GETSUCCESS',
            data: data
         }
}